%%%-------------------------------------------------------------------
%%% @author admin
%%% @copyright (C) 2021, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 30. 十二月 2021 14:51
%%%-------------------------------------------------------------------
-module(unpack_behav).
-author("admin").

%% unpack call back.
-callback unpack(
    Bin::binary())
      -> {ok, PackList::list(),LeftBin::binary()}
    | {error, PackList::list(),LeftBin::binary()}
    | error.
